package com.alan.server.entity;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.alan.server.entity.BaseModel;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 测试用户表
 * </p>
 *
 * @author alan
 * @since 2017-11-04
 */
@Data
@Accessors(chain = true)
@TableName("demo_user")
public class DemoUser extends BaseModel<DemoUser> {

    private static final long serialVersionUID = 1L;

    /**
     * 用户姓名
     */
	@TableField("user_name")
	private String userName;
    /**
     * 用户密码
     */
	@TableField("user_password")
	private String userPassword;
    /**
     * 密码盐
     */
	@TableField("login_salt")
	private String loginSalt;
    /**
     * 支付密码
     */
	@TableField("trade_password")
	private String tradePassword;
    /**
     * 支付密码盐
     */
	@TableField("tarde_salt")
	private String tardeSalt;
    /**
     * 生日 yyyy-mm-dd
     */
	@TableField("birth_day")
	private String birthDay;
    /**
     * 用户头像
     */
	@TableField("user_icon")
	private String userIcon;
    /**
     * 性别, 1:男，2:女，3：保密
     */
	private String sex;
    /**
     * 昵称
     */
	@TableField("nick_name")
	private String nickName;
    /**
     * 手机号
     */
	private String mobile;
    /**
     * 邮箱
     */
	private String emall;
    /**
     * 最后登录时间
     */
	@TableField("last_login_date")
	private Date lastLoginDate;
    /**
     * 最后登录ip
     */
	@TableField("last_login_ip")
	private String lastLoginIp;
    /**
     * 手机登录标识 用来判断用户登录环境
     */
	@TableField("mobile_tgc")
	private String mobileTgc;
    /**
     * 上级id
     */
	@TableField("parent_id")
	private Long parentId;
	private String extrinfo;


	public static final String USER_NAME = "user_name";

	public static final String USER_PASSWORD = "user_password";

	public static final String LOGIN_SALT = "login_salt";

	public static final String TRADE_PASSWORD = "trade_password";

	public static final String TARDE_SALT = "tarde_salt";

	public static final String BIRTH_DAY = "birth_day";

	public static final String USER_ICON = "user_icon";

	public static final String SEX = "sex";

	public static final String NICK_NAME = "nick_name";

	public static final String MOBILE = "mobile";

	public static final String EMALL = "emall";

	public static final String LAST_LOGIN_DATE = "last_login_date";

	public static final String LAST_LOGIN_IP = "last_login_ip";

	public static final String MOBILE_TGC = "mobile_tgc";

	public static final String PARENT_ID = "parent_id";

	public static final String EXTRINFO = "extrinfo";

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
